package com.android.task5;

import android.util.Log;

//{
//	"count": 773840,"photos": [
//	{
//	"photo_id": 532693,
//	"photo_title": "Wheatfieldin afternoonlight",
//	"photo_url": "http://www.panoramio.com/photo/532693",
//	"photo_file_url": "http://static2.bareka.com/photos/medium/532693.jpg",
//	"longitude": 11.280727,
//	"latitude": 59.643198,
//	"width": 500,
//	"height": 333,
//	"upload_date": "22 January2007",
//	"owner_id": 39160,
//	"owner_name": "Snemann",
//	"owner_url": "http://www.panoramio.com/user/39160",
//	}, ...

public class PanoramioPhoto {
	
	private final static String INFO_TAG = "Panoramio Photo Info";
	
	String photoUrl;
	String photoTitle;
	String ownerName;
	
	public PanoramioPhoto(String url, String title, String owner){
		this.photoUrl = url;
		this.photoTitle = title;
		this.ownerName = owner;
		displayInfo();
	}
	
	public String getDownloadUrl(){
		Log.i("URL",photoUrl);
		return photoUrl;
	}
	
	public String getOwnerName(){
		return ownerName;
	}
	
	public String getTitle(){
		return photoTitle;
	}
	
	public void displayInfo(){
		Log.i(INFO_TAG, getDownloadUrl() + ", " + getOwnerName() + ", " + getTitle());
	}
	

}
